﻿using System.Data.Objects;

namespace AsyncDBClient.Models
{
    public class SydEnergiEntities : ObjectContext
    {
        private ObjectSet<Address> _addresses;
        private ObjectSet<Cabinet> _cabinets;
        private ObjectSet<Entry> _entries;
 
        public SydEnergiEntities() : base("name=SydEnergiEntities", "SydEnergiEntities")
        {
            _addresses = CreateObjectSet<Address>();
            _cabinets = CreateObjectSet<Cabinet>();
            _entries = CreateObjectSet<Entry>();
        }

        public ObjectSet<Address> Addresses
        {
            get { return _addresses; }
        } 

        public ObjectSet<Cabinet> Cabinets
        {
            get { return _cabinets; }
        }

        public ObjectSet<Entry> Entries
        {
            get { return _entries; }
        }
    }
}
